/*
* Copyright© 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.order.dao;

import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * Description:
 *
 * @author YangGuang
 * @since: 1.0
 * Create Date Time: 2018/10/12 11:22
 * Update Date Time:
 */
public interface PassengerOrderDao {

    /**
     * Description: 查询乘客订单编号
     * @param passengerPhone 乘客手机号
     * @return 订单编号
     * @author: YangGuang
     * Create Date Time: 2018/10/12 11:56
     * Update Date Time:
     */
    String selectPassengerOrderId(@Param("passengerPhone") String passengerPhone, @Param("state") int state);

    /**
     * Description: 查询乘客手机号
     * @param mobile 司机手机号
     * @return 乘客手机号
     * @author: YangGuang
     * Create Date Time: 2018/10/16 17:01
     * Update Date Time:
     */
    String selectPassengerMobile(@Param("mobile") String mobile, @Param("state") int state);

    /**
     * Description: 根据订单id查询手机号
     * @param orderId 订单id
     * @return 乘客手机号
     * @author: YangGuang
     * Create Date Time: 2018/10/18 10:13
     * Update Date Time:
     */
    String selectMobileByOrderId(String orderId);
    /**
     * Description: 查询订单
     * @param passengerPhone 乘客手机号
     * @return 订单编号
     * @author: YangGuang
     * Create Date Time: 2018/10/12 11:56
     * Update Date Time:
     */
    Map<String,Object> selectOrder(@Param("passengerPhone") String passengerPhone, @Param("state") int state);
}
